/**
 * 
 */
package com.igoal.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.igoal.dto.MessageDTO;
import com.igoal.entity.Message;

public interface MessageManager extends GenericManager<Message, Long> {

	List<MessageDTO> getNewMessage(Long userId);
	
	List<MessageDTO> getReceivedMessage(Long userId);

	List<MessageDTO> getSentMessage(Long userId);

	@Transactional(readOnly = false)
	int saveMessage(MessageDTO message);
	
}
